import {ResDto} from "../types/common";
import instance from "../axios.service";
import {BaseUrl} from "../common/constants";

export default {
    getStatisticsData: (params: any): Promise<ResDto> => instance.get(`${BaseUrl}/v1/amount/statistics`, {params}),
    getAmountRecordList: (params: any): Promise<ResDto> => instance.get(`${BaseUrl}/v1/amount/all`, {params}),
    getTotalAmount: (): Promise<ResDto> => instance.get(`${BaseUrl}/v1/amount/totalAmount`),
}
